package com.zrrd.learn.chapter08.reflex;

/**
 * 狮子反射
 *
 * @author asus
 * @version 1.0
 * @date 2023/8/8 8:37
 */
public class Lion {
//    使用反射实例化一个Lion, 辛巴  红色

    private String name;

    private String color;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
    public Lion createOneLion(String name,String color){
        this.setName(name);
        this.setColor(color);
        return this;
    }

    }



